﻿(function (AMap) {
  AMap.findLocation = function () {
    this.initialize();
  };
  AMap.findLocation.prototype = {
    constructor: AMap.findLocation,
    initialize: function () {
      this.container = AMap.utils.createDom("div", null, "amap-findlocationcontrol");
      this.container.innerHTML = "test";
    },
    addTo: function (map, dom) {
      
      alert("hello");
      var map = map || YuanMap.map;
      dom.appendChild(this._getHtmlDom(map));
    },
    _getHtmlDom: function (map) {
      return this.container;
    }
  };
})(AMap);